package com.letoken.platform.repo.mall.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 等级提升记录
 * </p>
 *
 * @author author
 * @since 2023-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("level_up_history")
@ApiModel(value="LevelUpHistory对象", description="等级提升记录")
public class LevelUpHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "1=星推官 2=推广大使")
    private Integer type;

    @ApiModelProperty(value = "变更前等级")
    private Integer beforeLevel;

    @ApiModelProperty(value = "变更后等级")
    private Integer afterLevel;

    @ApiModelProperty(value = "触发原因")
    private String reason;

    private LocalDateTime createTime;


}
